<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/resources/css/screen.css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Team 2 - Leave Application</title>
</head>
<body>
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
		<h1 style="color: #fff; font-style: oblique;">NUS-ISS(LAMS)</h1>
	</div>
	<!-- end logo -->
	
	</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
	<!--  start nav-outer-repeat................................................................................................. START -->
	<div class="nav-outer-repeat">
		<!--  start nav-outer -->
		<div class="nav-outer">

			<!-- start nav-right -->
			<div id="nav-right">
				<div class="nav">
					<div class="table">
						<div class="nav-divider">&nbsp;</div>
						<label class="current" id="username"><i>${loggedEmployee.name}</i></label>
						<div class="nav-divider">&nbsp;</div>
						<a href="${pageContext.request.contextPath}/logout"><label class="current"
							id="logout">Logout</label></a>
					</div>
					<!-- end nav-right -->
				</div>
			</div>

			<!--  start nav -->
			<div class="nav">
				<div class="table">
					<ul class="select">
						<li class="current"><a
							href="${pageContext.request.contextPath}/manager/ApproveRejectLeave/${loggedEmployee.employeeId}.html"><b>Approve/Reject
									Leave</b></a></li>
						<li><a
							href="${pageContext.request.contextPath}/manager/viewAllEmpHistory/${loggedEmployee.employeeId}.html"><b>View
									All Leave History</b></a></li>
						<li><a
							href="${pageContext.request.contextPath}/manager/report.html"><b>Report</b></a></li>
					</ul>
					<div class="clear"></div>

				</div>
				<div class="clear"></div>
			</div>
			<!--  start nav -->

		</div>
		<div class="clear"></div>
		<!--  start nav-outer -->
	</div>
	<!--  start nav-outer-repeat................................................... END -->

	<div class="clear"></div>

	<!-- start content-outer ........................................................................................................................START -->
	<div id="content-outer">
		<!-- start content -->
		<div id="content">

			<!--  start page-heading -->
			<div id="page-heading">
				<h1>Leave Details</h1>
			</div>
			<!-- end page-heading -->

			<table border="0" width="100%" cellpadding="0" cellspacing="0"
				id="content-table">
				<tr>
					<th rowspan="3" class="sized"><img
						src="${pageContext.request.contextPath}/resources/images/shared/side_shadowleft.jpg" width="20"
						height="300" alt="" /></th>
					<th class="topleft"></th>
					<td id="tbl-border-top">&nbsp;</td>
					<th class="topright"></th>
					<th rowspan="3" class="sized"><img
						src="${pageContext.request.contextPath}/resources/images/shared/side_shadowright.jpg" width="20"
						height="300" alt="" /></th>
				</tr>
				<tr>
					<td id="tbl-border-left"></td>

					<td>
						<!--  start content-table-inner ...................................................................... START -->
						<div id="content-table-inner">

							<!--  start table-content  -->
							<div id="table-content">
								<!--  start product-table ..................................................................................... -->
								<form:form method="POST" commandName="Leave"
									action="${pageContext.request.contextPath}/manager/ApproveRejectLeave/${Leave.leaveId}.html">

									<table border="0" cellpadding="0" cellspacing="0" id="id-form">

										<tr>
											<th valign="top">Employee ID</th>
											<td>${Leave.employee.employeeId}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">Employee Name</th>
											<td>${Leave.employee.name}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">Designation</th>
											<td>${Leave.employee.designation}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">Leave Type</th>
											<td>${Leave.leaveType.leaveType}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">Apply Date</th>
											<td>${Leave.applyDate}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">From Date</th>
											<td>${Leave.fromDate}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">To Date</th>
											<td>${Leave.toDate}</td>
											<td></td>
										</tr>
										<tr>
											<th valign="top">Reason</th>
											<td>${Leave.leaveId}</td>
											<td></td>
										</tr>



										<tr>
											<th valign="top">Manager Reason</th>
											<td><form:input path="mangerComment" />
											<td></td>
										</tr>
										<tr>
											<td colspan="3">
												<button type="submit" class="form-submit" name="update">Accept</button>
												<button type="submit" id="delete" class="form-reset"
													name="delete">Reject</button>
											</td>
										</tr>

									</table>
									<!--  end product-table................................... -->


								</form:form>

								<!--  end product-table................................... -->

							</div>
							<!--  end content-table  -->

							<div class="clear"></div>

						</div> <!--  end content-table-inner ............................................END  -->
					</td>
					<td id="tbl-border-right"></td>
				</tr>
				<tr>
					<th class="sized bottomleft"></th>
					<td id="tbl-border-bottom">&nbsp;</td>
					<th class="sized bottomright"></th>
				</tr>
			</table>
			<div class="clear">&nbsp;</div>

		</div>

		<div class="clear">&nbsp;</div>
	</div>
	<!--  end content-outer........................................................END -->
<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	ISS SA-37 TEAM 2 @  GILBRT @ KHIN LAI PHYO AUNG @ LIU CHANG @ MAHEEN @ NAN MAI NGIN @ NARESH SARAVANA </div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
</body>
</html>